package com.share.design.status.demo01;

/**
 * 2 - 仓库处理中
 * @author caifan
 * @since 2022/11/6
 */
public class WarehouseProcessing implements PackageState{

    private static WarehouseProcessing instance = new WarehouseProcessing();
    private WarehouseProcessing() {}

    public static WarehouseProcessing getInstance() {
        return instance;
    }

    @Override
    public void updateState(PackageContext ctx) {
        System.out.println("2-仓库处理");
        ctx.setCurrentState(InTransition.getInstance());
    }
}
